<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<p>
	<html:link href="#" onclick="sendRequest('newsAction.do', 'GET', 'method=list')">
		<bean:message key="label.link.News"/> 
	</html:link> &gt;&gt;
	<bean:message key="label.viewnews.title"/><br/>
</p>
<html:form>
	<p class="news-label">
		<bean:message key="label.viewnews.newstitle" />
	</p>
	<p class="news-content"> ${newsForm.news.title} </p>
	<p class="news-label">
		<bean:message key="label.viewnews.newsdate" />
	</p>
	<c:set var="pattern">
		<bean:message key="format.date" />
	</c:set>
	<p class="news-content"> <fmt:formatDate value="${newsForm.news.date}" type="DATE" pattern="${pattern}"/> </p>
	<p class="news-label">
		<bean:message key="label.viewnews.brief" />
	</p>
	<p class="news-content" id="news-brief">
		${newsForm.news.brief}
	</p>
	<p class="news-label">
		<bean:message key="label.viewnews.content" />
	</p>
	<p class="news-content"> 
		${newsForm.news.content}
	</p>			
	<button type="button" class="news-button" name="method" value="delete" onclick="deleteFromView()">
		<bean:message key="label.viewnews.button.delete" />
	</button>
	<button type="button" class="news-button" name="method" value="edit" onclick="sendRequest('newsAction.do', 'POST', 'method=edit')">
		<bean:message key="label.viewnews.button.edit" />
	</button> 						
</html:form>